﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormScan.aspx.cs" Inherits="ArchivingDataWebForms.Pages.Scanner.WebFormScan" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>


    //start silverLightScan
function startSilverLightScan(button, id, port) {

    try {
        var silverLightControl = document.getElementById('scanADocumentObject');
        silverLightControl.content.Page.startScan(button, id, port);
    }
    catch (ex) {
        setTimeout(function () {
            startSilverLightScan(button, id, port);
        }, 500);
    }
}

//finish silverlight
function mySilverLightDoPostBack(name, params) {
    __doPostBack(name, params);
}

</head>
<body>
    <form id="form1" runat="server">
    <div>
                            <div id="silverlightControlHost">
                                <object id="scanADocumentObject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="1" height="1">
                                    <param name="source" value="../../ClientBin/ScanADocument.xap" />
                                    <param name="onError" value="onSilverlightError" />
                                    <param name="background" value="white" />
                                    <param name="minRuntimeVersion" value="3.0.40818.0" />
                                    <param name="autoUpgrade" value="false" />
                                    <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style="text-decoration: none">
                                        <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style: none" />
                                    </a>
                                </object>
                                <iframe id="_sl_historyFrame" style="visibility: hidden; height: 0px; width: 0px; border: 0px"></iframe>
                            </div>
    </div>
    </form>
</body>
</html>
